Optimal. Leaf size=300 \[ -\frac{\sqrt{a+b x} \left (a^2-b^2 x^2\right ) \sqrt{a c-b c x} \left (4 \left (2 a^2 C f^2-b^2 \left (3 C e^2-5 f (A f+B e)\right )\right )-3 b^2 f x (3 C e-5 B f)\right )}{60 b^4 f}+\frac{a^2 \sqrt{c} \sqrt{a+b x} \sqrt{a c-b c x} \tan ^{-1}\left (\frac{b \sqrt{c} x}{\sqrt{a^2 c-b^2 c x^2}}\right ) \left (a^2 (B f+C e)+4 A b^2 e\right )}{8 b^3 \sqrt{a^2 c-b^2 c x^2}}+\frac{x \sqrt{a+b x} \sqrt{a c-b c x} \left (a^2 (B f+C e)+4 A b^2 e\right )}{8 b^2}-\frac{C \sqrt{a+b x} \left (a^2-b^2 x^2\right ) (e+f x)^2 \sqrt{a c-b c x}}{5 b^2 f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.445962, antiderivative size = 297, normalized size of antiderivative = 0.99, number of steps used = 6, number of rules used = 6, integrand size = 38, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.158, Rules used = {1610, 1654, 780, 195, 217, 203} \[ -\frac{\sqrt{a+b x} \left (a^2-b^2 x^2\right ) \sqrt{a c-b c x} \left (4 \left (2 a^2 C f^2-b^2 \left (3 C e^2-5 f (A f+B e)\right )\right )-3 b^2 f x (3 C e-5 B f)\right )}{60 b^4 f}+\frac{a^2 \sqrt{c} \sqrt{a+b x} \sqrt{a c-b c x} \tan ^{-1}\left (\frac{b \sqrt{c} x}{\sqrt{a^2 c-b^2 c x^2}}\right ) \left (a^2 (B f+C e)+4 A b^2 e\right )}{8 b^3 \sqrt{a^2 c-b^2 c x^2}}+\frac{1}{8} x \sqrt{a+b x} \sqrt{a c-b c x} \left (\frac{a^2 (B f+C e)}{b^2}+4 A e\right )-\frac{C \sqrt{a+b x} \left (a^2-b^2 x^2\right ) (e+f x)^2 \sqrt{a c-b c x}}{5 b^2 f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1610
Rule 1654
Rule 780
Rule 195
Rule 217
Rule 203
Rubi steps
\begin{align*} \int \sqrt{a+b x} \sqrt{a c-b c x} (e+f x) \left (A+B x+C x^2\right ) \, dx &=\frac{\left (\sqrt{a+b x} \sqrt{a c-b c x}\right ) \int (e+f x) \sqrt{a^2 c-b^2 c x^2} \left (A+B x+C x^2\right ) \, dx}{\sqrt{a^2 c-b^2 c x^2}}\\ &=-\frac{C \sqrt{a+b x} \sqrt{a c-b c x} (e+f x)^2 \left (a^2-b^2 x^2\right )}{5 b^2 f}-\frac{\left (\sqrt{a+b x} \sqrt{a c-b c x}\right ) \int (e+f x) \left (-c \left (5 A b^2+2 a^2 C\right ) f^2+b^2 c f (3 C e-5 B f) x\right ) \sqrt{a^2 c-b^2 c x^2} \, dx}{5 b^2 c f^2 \sqrt{a^2 c-b^2 c x^2}}\\ &=-\frac{C \sqrt{a+b x} \sqrt{a c-b c x} (e+f x)^2 \left (a^2-b^2 x^2\right )}{5 b^2 f}-\frac{\sqrt{a+b x} \sqrt{a c-b c x} \left (4 \left (2 a^2 C f^2-b^2 \left (3 C e^2-5 f (B e+A f)\right )\right )-3 b^2 f (3 C e-5 B f) x\right ) \left (a^2-b^2 x^2\right )}{60 b^4 f}+\frac{\left (\left (4 A b^2 e+a^2 (C e+B f)\right ) \sqrt{a+b x} \sqrt{a c-b c x}\right ) \int \sqrt{a^2 c-b^2 c x^2} \, dx}{4 b^2 \sqrt{a^2 c-b^2 c x^2}}\\ &=\frac{1}{8} \left (4 A e+\frac{a^2 (C e+B f)}{b^2}\right ) x \sqrt{a+b x} \sqrt{a c-b c x}-\frac{C \sqrt{a+b x} \sqrt{a c-b c x} (e+f x)^2 \left (a^2-b^2 x^2\right )}{5 b^2 f}-\frac{\sqrt{a+b x} \sqrt{a c-b c x} \left (4 \left (2 a^2 C f^2-b^2 \left (3 C e^2-5 f (B e+A f)\right )\right )-3 b^2 f (3 C e-5 B f) x\right ) \left (a^2-b^2 x^2\right )}{60 b^4 f}+\frac{\left (a^2 c \left (4 A b^2 e+a^2 (C e+B f)\right ) \sqrt{a+b x} \sqrt{a c-b c x}\right ) \int \frac{1}{\sqrt{a^2 c-b^2 c x^2}} \, dx}{8 b^2 \sqrt{a^2 c-b^2 c x^2}}\\ &=\frac{1}{8} \left (4 A e+\frac{a^2 (C e+B f)}{b^2}\right ) x \sqrt{a+b x} \sqrt{a c-b c x}-\frac{C \sqrt{a+b x} \sqrt{a c-b c x} (e+f x)^2 \left (a^2-b^2 x^2\right )}{5 b^2 f}-\frac{\sqrt{a+b x} \sqrt{a c-b c x} \left (4 \left (2 a^2 C f^2-b^2 \left (3 C e^2-5 f (B e+A f)\right )\right )-3 b^2 f (3 C e-5 B f) x\right ) \left (a^2-b^2 x^2\right )}{60 b^4 f}+\frac{\left (a^2 c \left (4 A b^2 e+a^2 (C e+B f)\right ) \sqrt{a+b x} \sqrt{a c-b c x}\right ) \operatorname{Subst}\left (\int \frac{1}{1+b^2 c x^2} \, dx,x,\frac{x}{\sqrt{a^2 c-b^2 c x^2}}\right )}{8 b^2 \sqrt{a^2 c-b^2 c x^2}}\\ &=\frac{1}{8} \left (4 A e+\frac{a^2 (C e+B f)}{b^2}\right ) x \sqrt{a+b x} \sqrt{a c-b c x}-\frac{C \sqrt{a+b x} \sqrt{a c-b c x} (e+f x)^2 \left (a^2-b^2 x^2\right )}{5 b^2 f}-\frac{\sqrt{a+b x} \sqrt{a c-b c x} \left (4 \left (2 a^2 C f^2-b^2 \left (3 C e^2-5 f (B e+A f)\right )\right )-3 b^2 f (3 C e-5 B f) x\right ) \left (a^2-b^2 x^2\right )}{60 b^4 f}+\frac{a^2 \sqrt{c} \left (4 A b^2 e+a^2 (C e+B f)\right ) \sqrt{a+b x} \sqrt{a c-b c x} \tan ^{-1}\left (\frac{b \sqrt{c} x}{\sqrt{a^2 c-b^2 c x^2}}\right )}{8 b^3 \sqrt{a^2 c-b^2 c x^2}}\\ \end{align*}
Mathematica [A] time = 0.646006, size = 200, normalized size = 0.67 \[ -\frac{c \left (\left (a^2-b^2 x^2\right ) \left (a^2 b^2 (40 A f+5 B (8 e+3 f x)+C x (15 e+8 f x))+16 a^4 C f-2 b^4 x (10 A (3 e+2 f x)+x (5 B (4 e+3 f x)+3 C x (5 e+4 f x)))\right )+30 a^{5/2} b \sqrt{a-b x} \sqrt{\frac{b x}{a}+1} \sin ^{-1}\left (\frac{\sqrt{a-b x}}{\sqrt{2} \sqrt{a}}\right ) \left (a^2 (B f+C e)+4 A b^2 e\right )\right )}{120 b^4 \sqrt{a+b x} \sqrt{c (a-b x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.013, size = 588, normalized size = 2. \begin{align*}{\frac{1}{120\,{b}^{4}}\sqrt{bx+a}\sqrt{-c \left ( bx-a \right ) } \left ( 24\,C{x}^{4}{b}^{4}f\sqrt{{b}^{2}c}\sqrt{-c \left ({b}^{2}{x}^{2}-{a}^{2} \right ) }+30\,B{x}^{3}{b}^{4}f\sqrt{{b}^{2}c}\sqrt{-c \left ({b}^{2}{x}^{2}-{a}^{2} \right ) }+30\,C{x}^{3}{b}^{4}e\sqrt{{b}^{2}c}\sqrt{-c \left ({b}^{2}{x}^{2}-{a}^{2} \right ) }+60\,A\arctan \left ({\frac{\sqrt{{b}^{2}c}x}{\sqrt{-c \left ({b}^{2}{x}^{2}-{a}^{2} \right ) }}} \right ){a}^{2}{b}^{4}ce+40\,A{x}^{2}{b}^{4}f\sqrt{{b}^{2}c}\sqrt{-c \left ({b}^{2}{x}^{2}-{a}^{2} \right ) }+15\,B\arctan \left ({\frac{\sqrt{{b}^{2}c}x}{\sqrt{-c \left ({b}^{2}{x}^{2}-{a}^{2} \right ) }}} \right ){a}^{4}{b}^{2}cf+40\,B{x}^{2}{b}^{4}e\sqrt{{b}^{2}c}\sqrt{-c \left ({b}^{2}{x}^{2}-{a}^{2} \right ) }+15\,C\arctan \left ({\frac{\sqrt{{b}^{2}c}x}{\sqrt{-c \left ({b}^{2}{x}^{2}-{a}^{2} \right ) }}} \right ){a}^{4}{b}^{2}ce-8\,C{x}^{2}{a}^{2}{b}^{2}f\sqrt{{b}^{2}c}\sqrt{-c \left ({b}^{2}{x}^{2}-{a}^{2} \right ) }+60\,A\sqrt{{b}^{2}c}\sqrt{-c \left ({b}^{2}{x}^{2}-{a}^{2} \right ) }x{b}^{4}e-15\,B\sqrt{{b}^{2}c}\sqrt{-c \left ({b}^{2}{x}^{2}-{a}^{2} \right ) }x{a}^{2}{b}^{2}f-15\,C\sqrt{{b}^{2}c}\sqrt{-c \left ({b}^{2}{x}^{2}-{a}^{2} \right ) }x{a}^{2}{b}^{2}e-40\,A{a}^{2}{b}^{2}f\sqrt{{b}^{2}c}\sqrt{-c \left ({b}^{2}{x}^{2}-{a}^{2} \right ) }-40\,B{a}^{2}{b}^{2}e\sqrt{{b}^{2}c}\sqrt{-c \left ({b}^{2}{x}^{2}-{a}^{2} \right ) }-16\,C{a}^{4}f\sqrt{{b}^{2}c}\sqrt{-c \left ({b}^{2}{x}^{2}-{a}^{2} \right ) } \right ){\frac{1}{\sqrt{-c \left ({b}^{2}{x}^{2}-{a}^{2} \right ) }}}{\frac{1}{\sqrt{{b}^{2}c}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.27366, size = 980, normalized size = 3.27 \begin{align*} \left [\frac{15 \,{\left (B a^{4} b f +{\left (C a^{4} b + 4 \, A a^{2} b^{3}\right )} e\right )} \sqrt{-c} \log \left (2 \, b^{2} c x^{2} + 2 \, \sqrt{-b c x + a c} \sqrt{b x + a} b \sqrt{-c} x - a^{2} c\right ) + 2 \,{\left (24 \, C b^{4} f x^{4} - 40 \, B a^{2} b^{2} e + 30 \,{\left (C b^{4} e + B b^{4} f\right )} x^{3} + 8 \,{\left (5 \, B b^{4} e -{\left (C a^{2} b^{2} - 5 \, A b^{4}\right )} f\right )} x^{2} - 8 \,{\left (2 \, C a^{4} + 5 \, A a^{2} b^{2}\right )} f - 15 \,{\left (B a^{2} b^{2} f +{\left (C a^{2} b^{2} - 4 \, A b^{4}\right )} e\right )} x\right )} \sqrt{-b c x + a c} \sqrt{b x + a}}{240 \, b^{4}}, -\frac{15 \,{\left (B a^{4} b f +{\left (C a^{4} b + 4 \, A a^{2} b^{3}\right )} e\right )} \sqrt{c} \arctan \left (\frac{\sqrt{-b c x + a c} \sqrt{b x + a} b \sqrt{c} x}{b^{2} c x^{2} - a^{2} c}\right ) -{\left (24 \, C b^{4} f x^{4} - 40 \, B a^{2} b^{2} e + 30 \,{\left (C b^{4} e + B b^{4} f\right )} x^{3} + 8 \,{\left (5 \, B b^{4} e -{\left (C a^{2} b^{2} - 5 \, A b^{4}\right )} f\right )} x^{2} - 8 \,{\left (2 \, C a^{4} + 5 \, A a^{2} b^{2}\right )} f - 15 \,{\left (B a^{2} b^{2} f +{\left (C a^{2} b^{2} - 4 \, A b^{4}\right )} e\right )} x\right )} \sqrt{-b c x + a c} \sqrt{b x + a}}{120 \, b^{4}}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{- c \left (- a + b x\right )} \sqrt{a + b x} \left (e + f x\right ) \left (A + B x + C x^{2}\right )\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]